package com.chao.demo.bean;

import com.chao.demo.utils.desensitization.Desensitization;
import com.chao.demo.utils.desensitization.DesensitizationStrategy;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    private int id;
    private String account;
    private String password;
    @Desensitization(DesensitizationStrategy.PHONE)
    private String phone;
    private String status;
    // 在User类中添加username字段
    private String username;
    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
